package com.ryzx.example.vo;

import com.ryzx.jpa.helper.base.BapBaseEntity;
import com.ryzx.jpa.helper.comment.Comment;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;


@Getter
@Setter
@Table(name = "Publisher")
@Entity
public class Publisher extends BapBaseEntity {
    @Comment("出版社")
    @Column(nullable = false, length = 40)
    private String name;
    @Comment("年份")
    @Column(nullable = false)
    private int year;
}